import { forwardRef, Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { UserService } from './user.service';
import { UserController } from './user.controller';
import { User } from './entities/user.entity';
import { ZhimaModule } from '../zhima/zhima.module';
import { OrderModule } from '../order/order.module';
import { PositionsModule } from '../positions/positions.module';

@Module({
  imports: [TypeOrmModule.forFeature([User]), ZhimaModule, forwardRef(() => OrderModule), PositionsModule],
  controllers: [UserController],
  providers: [UserService],
  exports: [UserService],
})
export class UserModule {}
